var app = getApp();
var util = require("../../utils/util.js");
var siteinfo = require('../../siteinfo.js');
Page({
  onLoad: function (options) {
    this.setData({
      id:options.id
    })
    this.selCertificateFill(options.id)
  },

  onShow: function () {
    
  },
  //返回首页
  toIndex:function(){
    wx.switchTab({
      url: '/pages/index/index',
    })
  },
  //获取报名信息
  selCertificateFill: function (id) {
    var _this = this
    app._getLogin(siteinfo.selCertificateFill, {
      id:id
    }, function (result) {
      _this.setData({
        info:result.data
      })
    });
  },
  //下一步
  next: function () {
    var _this = this
    wx.navigateTo({
      url: '/pages/signPay/signPay?id=' + _this.data.id + '&stuSignUpId=' + _this.data.info.id,
    })
  },
  //去修改
  // toEdit:function(){
  //   var _this = this
  //   wx.navigateTo({
  //     url: '/pages/signEdit/signEdit?id=' + _this.data.id + '&stuSignUpId=' + _this.data.info.id
  //   })
  // },
  /**
   * 
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})